Welcome![Sign In][Sign Up]
Location:
Search - WPF RichTextBox

Search list

[RichEditManOriKnowledge

Description: 最近弄一个可以编辑显示文本、图片、公式、表格、超链接等内容的东东,将其保存好数据库(DB4O),然后直接在内存中打开。最先想到的当然是dotNet的RichTextBox,但它对这些格式数据支持并不好,尤其是上下标。然后就是微软的Office Framer Control,没有什么问题,但是需要运行word进程,那玩意太庞大,尤其是在打开多个文档的时候占用内存过多。最后想到了wpf的Flowdocment,它虽然不直接支持公式,但在能直接将相关内容转换为图片形式,且不会改变显示样式。使用WPF的richTextBox可以直接将word编辑好的内容复制过来,然后保存。 同时文档保存形式也就讲究,应该保存为XamlPackage,这是一种压缩格式,把流文档的各种相关数据一同保存,因此很省事,不用关系连接或图片、多媒体的数据源问题。当然XamlPackage只保存Section节点。 在数据库中文档用byte[]表示,从数据库中打开文档时,可以使用byte[]实例化MemoryStream然后直接加载到相应的流文档显示控件中,但保存到数据库时却需要使用临时文件转储。相应的代码如下(C#):
Platform: | Size: 39417 | Author: hanunhua | Hits:

[RichEditManOriKnowledge

Description: 最近弄一个可以编辑显示文本、图片、公式、表格、超链接等内容的东东,将其保存好数据库(DB4O),然后直接在内存中打开。最先想到的当然是dotNet的RichTextBox,但它对这些格式数据支持并不好,尤其是上下标。然后就是微软的Office Framer Control,没有什么问题,但是需要运行word进程,那玩意太庞大,尤其是在打开多个文档的时候占用内存过多。最后想到了wpf的Flowdocment,它虽然不直接支持公式,但在能直接将相关内容转换为图片形式,且不会改变显示样式。使用WPF的richTextBox可以直接将word编辑好的内容复制过来,然后保存。 同时文档保存形式也就讲究,应该保存为XamlPackage,这是一种压缩格式,把流文档的各种相关数据一同保存,因此很省事,不用关系连接或图片、多媒体的数据源问题。当然XamlPackage只保存Section节点。 在数据库中文档用byte[]表示,从数据库中打开文档时,可以使用byte[]实例化MemoryStream然后直接加载到相应的流文档显示控件中,但保存到数据库时却需要使用临时文件转储。相应的代码如下(C#):
Platform: | Size: 38912 | Author: | Hits:

[RichEditRichTextBoxSamples

Description: vs2008 WPF应用程序 RichtextBox示例-vs2008 WPF RichTextBox Example applications
Platform: | Size: 276480 | Author: 星云 | Hits:

[CSharpSpell_Check_in_TextBox_or_RichTextBox

Description: WPF, Spell Check in TextBox or RichTextBox.
Platform: | Size: 38912 | Author: Alex | Hits:

[CSharpWPF

Description: 複製網頁內容到richtextbox並保有原來格式-Copying from Webpage to richtextbox
Platform: | Size: 56320 | Author: Joanne | Hits:

[CSharpRTFEditor

Description: WPF 通过Richtextbox实现了简单的Word功能,涉及到了Richtextbox的常用操作-WPF through the Richtextbox to achieve a simple Word function involves a Richtextbox common operations
Platform: | Size: 3444736 | Author: zitong | Hits:

[CSharpTextEditor

Description: WPF 文本编辑器,Richtextbox,实现了文字颜色,以及背景色的改变 非常不错哦!-WPF text editor Richtextbox text color, and background color change is very good, oh!
Platform: | Size: 18432 | Author: zitong | Hits:

[CSharpWPFTest

Description: 基于WPF richtextbox 实现word文档按格式导入和导出-Based on WPF richtextbox word document format to import and export by
Platform: | Size: 66560 | Author: zhangshuai | Hits:

[CSharpWpfRichTextBoxEdit

Description: 基于WPF的文本编辑软件,采用RichTextBox实现文本的格式化-WPF-based text editing software, using RichTextBox for text formatting
Platform: | Size: 165888 | Author: Hansel | Hits:

[OtherTestRichTextBox

Description: wpf richtextbox bangding
Platform: | Size: 46080 | Author: cfwsc | Hits:

[CSharpEx03

Description: WPF 符文本编辑器 , RichTextBox 插入图片\连接\文字-WPF text editor
Platform: | Size: 6882304 | Author: sunyue | Hits:

[CSharpBRichTextEditor

Description: The BRichTextEditor control itself is pretty straightforward. It is a user control with two constituent controls a WPF RichTextBox control and a formatting toolbar. The formatting buttons are wired to commands the WPF command library.-The BRichTextEditor control itself is pretty straightforward. It is a user control with two constituent controls a WPF RichTextBox control and a formatting toolbar. The formatting buttons are wired to commands the WPF command library.
Platform: | Size: 30720 | Author: hamzayaras | Hits:

CodeBus www.codebus.net